<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%-- 引入页面头 --%>
<%@ include file="/pageHead.jsp"%>
<form name="form1" id="form1"
	action="<%-- ${systemctx}/sample/saveSample.web --%>" method="post">
	<div class="pageMain">
		<div class="pageTitle"><%=MessageResourcesUtils.getMessage(request, "systemmanage.servicemanagement.title") %><span></span><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.title") %><span></span><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.View") %></div>
		<div class="pageBody">
			<div class="form-group">
				<ul>
					<li>
						<i></i>修改前
						<hr>
					</li>
					<li>
						&nbsp;
						<hr>
					</li>
				</ul>
				<ul>
					<li>&nbsp;</li>
				</ul>
				<ul>
					<li>
						<i>*</i>
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.storecode") %></label>
						<span>${storeChargeManage.number}</span>
					</li>
					<li>
						<i></i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.storename") %></label>
						<span>${storeChargeManage.name}</span>
					</li>
				</ul>
			
				<ul>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.services.servicesList.servicenum") %></label>
						<span>${storeChargeManage.servicenum}</span>
					</li>
					<li>
						<i></i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.services.servicesList.servicename") %></label>
						<span>${storeChargeManage.servicename}</span>
					</li>
				</ul>
				
				<ul>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.proposed") %></label>
						<span>
							<c:if test="${storeChargeManage.isproposed == yes}">
							<input type="checkbox" id="isproposedcheck" checked="checked" name="isproposedcheck" class="check-box" disabled="disabled"/>
							</c:if>
							<c:if test="${storeChargeManage.isproposed != yes}">
							<input type="checkbox" id="isproposedcheck" name="isproposedcheck" class="check-box" disabled="disabled"/>
							</c:if>
						</span>
					</li>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.proposedprice") %></label>
						<span id="proposedprices">
							<c:if test="${storeChargeManage.proposedprice==0.00}">
								
							</c:if>
							<c:if test="${storeChargeManage.proposedprice!=0.00}">
								${storeChargeManage.proposedprice}
							</c:if>
						</span>
					</li>
				</ul>
				
				<ul>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.month") %></label>
						<span>
							<c:if test="${storeChargeManage.ismonth == yes}">
								<input type="checkbox" id="ismonthcheck" checked="checked" name="ismonthcheck" class="check-box" disabled="disabled"/>
							</c:if>
							<c:if test="${storeChargeManage.ismonth != yes}">
								<input type="checkbox" id="ismonthcheck" name="ismonthcheck" class="check-box" disabled="disabled"/>
							</c:if>
						</span>
					</li>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.monthprice") %></label>
						<span id="monthprices">
							<c:if test="${storeChargeManage.monthprice ==0.00}">

							</c:if>
							<c:if test="${storeChargeManage.monthprice !=0.00}">
							${storeChargeManage.monthprice}
							</c:if>
						</span>
					</li>
				</ul>
				<ul>
					<li>&nbsp;</li>
				</ul>
				<ul>
					<li>
						<i></i>修改后
						<hr>
					</li>
					<li>
						&nbsp;
						<hr>
					</li>
				</ul>
				<ul>
					<li>&nbsp;</li>
				</ul>
				<ul>
					<li>
						<i>*</i>
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.storecode") %></label>
						<span>${storeChargeManageTemp.number}</span>
					</li>
					<li>
						<i></i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.storename") %></label>
						<span>${storeChargeManageTemp.name}</span>
					</li>
				</ul>
			
				<ul>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.services.servicesList.servicenum") %></label>
						<span>${storeChargeManageTemp.servicenum}</span>
					</li>
					<li>
						<i></i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.services.servicesList.servicename") %></label>
						<span>${storeChargeManageTemp.servicename}</span>
					</li>
				</ul>
				
				<ul>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.proposed") %></label>
						<span>
							<c:if test="${storeChargeManageTemp.isproposed == yes}">
							<input type="checkbox" id="isproposedcheck" checked="checked" name="isproposedcheck" class="check-box" disabled="disabled"/>
							</c:if>
							<c:if test="${storeChargeManageTemp.isproposed != yes}">
							<input type="checkbox" id="isproposedcheck" name="isproposedcheck" class="check-box" disabled="disabled"/>
							</c:if>
						</span>
					</li>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.proposedprice") %></label>
						<span id="proposedprice">
							<c:if test="${storeChargeManageTemp.proposedprice==0.00}">
								
							</c:if>
							<c:if test="${storeChargeManageTemp.proposedprice!=0.00}">
								${storeChargeManageTemp.proposedprice}
							</c:if>
						</span>
					</li>
				</ul>
				
				<ul>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.month") %></label>
						<span>
							<c:if test="${storeChargeManageTemp.ismonth == yes}">
								<input type="checkbox" id="ismonthcheck" checked="checked" name="ismonthcheck" class="check-box" disabled="disabled"/>
							</c:if>
							<c:if test="${storeChargeManageTemp.ismonth != yes}">
								<input type="checkbox" id="ismonthcheck" name="ismonthcheck" class="check-box" disabled="disabled"/>
							</c:if>
						</span>
					</li>
					<li>
						<i>*</i> 
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.chargemanage.monthprice") %></label>
						<span id ="monthprice">
							<c:if test="${storeChargeManageTemp.monthprice ==0.00}">
							
							</c:if>
							<c:if test="${storeChargeManageTemp.monthprice !=0.00}">
							${storeChargeManageTemp.monthprice}
							</c:if>
						</span>
					</li>
				</ul>
			</div>
			<div class="button-group">
				<input type="button" class="btn btn-default" id="butReturn" name="butReturn" value='<%=MessageResourcesUtils.getMessage(request, "common.button.back") %>' />
			</div>
		</div>
	</div>
</form>
<script type="text/javascript">
function fmoney(s, n)   
{   
   n = n > 0 && n <= 20 ? n : 2;   
   s = parseFloat((s + "").replace(/[^\d\.-]/g, "")).toFixed(n) + "";   
   var l = s.split(".")[0].split("").reverse(),   
   r = s.split(".")[1];   
   t = "";   
   for(i = 0; i < l.length; i ++ )   
   {   
      t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? "," : "");   
   }   
   return t.split("").reverse().join("") + "." + r;   
} 

	$(document).ready(function(){
		//修改前的价格格式化
		if(${storeChargeManageTemp.proposedprice}!='' || ${storeChargeManageTemp.proposedprice} !=0.00){
			var proposedprice = fmoney(${storeChargeManageTemp.proposedprice}, 2)
			$('#proposedprice').text(proposedprice);
		}
		if(${storeChargeManageTemp.monthprice}!='' || ${storeChargeManageTemp.monthprice} !=0.00){
			var monthprice = fmoney(${storeChargeManageTemp.monthprice}, 2);
			$('#monthprice').text(monthprice);
		}
		//修改后的价格格式化
		if(${storeChargeManage.proposedprice}!='' || ${storeChargeManage.proposedprice} !=0.00){
			var proposedprices = fmoney(${storeChargeManage.proposedprice}, 2)
			$('#proposedprices').text(proposedprices);
		}
		if(${storeChargeManage.monthprice}!='' || ${storeChargeManage.monthprice} !=0.00){
			var monthprices = fmoney(${storeChargeManage.monthprice}, 2);
			$('#monthprices').text(monthprices);
		}
		
		
		
		$("#butReturn").click(function(){
			parent.document.location.reload();
			$.fn.closeIssWindow();
		});
	});
</script>
<%-- 引入页面尾 --%>
<%@ include file="/pageFloor.jsp"%>